package com.tourscool.springboot.starter.redisson;

import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
 * Redis执行工具。
 * 推荐使用{@link RedisExecBuilder}
 *
 * @author Carlton
 * @date 2018/4/5
 */
@Configuration
public class RedissonTools {
    private static RedissonClient mRedissonClient;

    @Autowired
    public RedissonTools(RedissonClient redissonClient) {
        mRedissonClient = redissonClient;
    }

    public static RedissonClient getRedissonClient() {
        return mRedissonClient;
    }
}
